package com.mm.cloud.feign.sys.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Set;

/**
 * 查询操作权限DTO
 *
 * @author mr
 * @since 2023-04-04
 */
@Data
@Schema(description = "查询操作权限DTO")
public class BtnPermissionCodeFeignDTO {

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "角色")
    @NotNull(message = "角色不能为空")
    private Set<String> roles;

    @Schema(description = "公司ID")
    @NotNull(message = "公司ID不能为空")
    private Long companyId;
}
